<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:include page="../../common/header.jsp" />
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script>
jQuery(document).ready(function() {    
	
	
	  
	
});

function back(){
	$("#menu_form").attr("action","<%=request.getContextPath()%>/sys/menu/list");
		$("#menu_form").submit();
	}
</script>

</head>
<body class="page-header-fixed page-full-width">





		<!-- content -->
		<div class="page-content">


			<!-- BEGIN PAGE CONTAINER-->

			<div class="container-fluid">

				<p></p>

				<!-- END PAGE HEADER-->

				<div class="portlet-body form">
					<c:if test="${success}">
						<div class="alert alert-success">
							<button class="close" data-dismiss="alert"></button>
							<strong><spring:message code="success"></spring:message>!</strong>
							<spring:message code="save success"></spring:message>!
						</div>
					</c:if>
					<h3 class="page-title">
						<c:if test="${menu.sysMenuId==null}">
							<spring:message code="btn.common.add.menu"></spring:message>
						</c:if>
						<c:if test="${menu.sysMenuId!=null}">
							<spring:message code="btn.common.edit.menu"></spring:message>
						</c:if>
					</h3>
					<form id="menu_form"
						action="<c:if test="${menu.sysMenuId==null}">add</c:if><c:if test="${menu.sysMenuId!=null}">update</c:if>"
						method="post" class="form-horizontal">
						<input type="hidden" name="sorting_column_order"
							id="sorting_column_order" value="${sorting_column_order }" /> <input
							type="hidden" name="sorting_asc_desc" id="sorting_asc_desc"
							value="${sorting_asc_desc}" /> <input type="hidden" name="id"
							value="${menu.sysMenuId}"></input> <input type="hidden"
							name="parentid" value="${param_parentId}"></input> <input
							type="hidden" name="token" value="${token}"></input>

						<c:if test="${menu.sysMenuId==null }">
							<div class="control-group">
								<label class="control-label"><spring:message
										code="parent menu"></spring:message>：</label>

								<div class="controls">
									<c:if test="${param_parentId==null }">
										<input type="text" maxlength="30" disabled="disabled"
											value="-" class="m-wrap" />
									</c:if>
									<c:if test="${param_parentId!=null }">
										<input type="text" maxlength="30" disabled="disabled"
											value="${parent_menu.sname }" class="m-wrap" />
									</c:if>

									<span class="help-inline"></span>
								</div>
							</div>

						</c:if>

						<div class="control-group">
							<label class="control-label"><spring:message
									code="menu name en"></spring:message>：</label>

							<div class="controls">

								<input type="text" maxlength="30" name="sname_en"
									value="${menu.sname_en }" class="m-wrap" /> <span
									class="help-inline"></span>

							</div>

						</div>

						<div class="control-group">
							<label class="control-label"><spring:message
									code="menu name cn"></spring:message>：</label>

							<div class="controls">

								<input type="text" maxlength="30" name="sname"
									value="${menu.sname }" class="m-wrap" /> <span
									class="help-inline"></span>

							</div>

						</div>



						<div class="control-group">

							<label class="control-label"><spring:message
									code="menu path"></spring:message>：</label>

							<div class="controls">

								<input type="text" maxlength="30" name="smenupath"
									value="${menu.smenupath}" class="m-wrap" /> <span
									class="help-inline"></span>

							</div>

						</div>


						<div class="control-group">

							<label class="control-label"><spring:message
									code="order id"></spring:message>：</label>

							<div class="controls">

								<input type="text" maxlength="20" name=isort
									value="${menu.isort}" class="m-wrap" /> <span
									class="help-inline"></span>

							</div>

						</div>

						<div class="control-group">

							<label class="control-label"><spring:message code="icon"></spring:message>：</label>

							<div class="controls">

								<input type="text" maxlength="20" name="siconcls"
									value="${menu.siconcls}" class="m-wrap" /> <span
									class="help-inline"></span>

							</div>

						</div>



						<div class="control-group">

							<label class="control-label"><spring:message code="mark"></spring:message>：</label>

							<div class="controls">

								<input type="text" maxlength="80" name="sremark"
									value="${menu.sremark}" class="m-wrap" /> <span
									class="help-inline"></span>

							</div>

						</div>





						<div class="form-actions">

							<button type="submit" class="btn blue">
								<spring:message code="btn.common.save"></spring:message>
							</button>

							<button type="button" onclick="back();" class="btn">
								<spring:message code="btn.common.back"></spring:message>
							</button>

						</div>



					</form>


				</div>




			</div>


		</div>
		<!-- content end -->






</body>